﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="DemoStore"
    targetNamespace="http://brett.maytom.net/schemas/Rest/DemoStore.xsd"
    elementFormDefault="qualified"
    xmlns="http://brett.maytom.net/schemas/Rest/DemoStore.xsd"
    xmlns:mstns="http://brett.maytom.net/schemas/Rest/DemoStore.xsd"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
>
  <xs:element name="Customers">
    <xs:complexType>
      <xs:sequence minOccurs="0" maxOccurs="unbounded">
        <xs:element name="Customer">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="FirstName" type="xs:string"  nillable="false"/>
              <xs:element name="LastName" type="xs:string"  nillable="false"/>
              <xs:element name="Telephone" type="xs:string"  nillable="false"/>
            </xs:sequence>
            <xs:attribute name="code" type="xs:string" use="required" />
          </xs:complexType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
</xs:schema>